import os

class Channel(object):
    required = []
    send = []
    
    @classmethod
    def check(cls, args):
        print('Starting Checking!')
        for req in cls.required:
            if req == 'file_dir':
                try:
                    directory = args.file_dir
                except:
                    raise IOError('Please add params file_dir')
                if not os.path.isdir(directory): raise IOError("File_dir:%s is not a directory"%str(directory))
            
            if req == 'file_path':
                try:
                    file = args.file_path
                except:
                    raise IOError('Please add params file_dir')
                if not os.path.isfile(file): raise IOError("File_path:%s is not a file"%str(file))

        for sed in cls.send:
            pass

        print('Checking end!')
        